package com.xuanrui.pubInter;

import java.util.List;

/**
 * @author afeng
 * @version 1.0
 * @date 2022/8/29 下午9:32
 */
public interface IBaseService <T extends BaseIdDoMain<KeyType>, TS extends BaseSearch, KeyType> extends IBaseFindService<T, TS, KeyType> {


    /**
     * 添加
     * @param model
     * @return
     * @throws Exception
     */
    T insert(T model) throws SkException;


    /**
     * 更新
     * @param model
     * @return
     * @throws Exception
     */
    T update(T model) throws SkException;


    /**
     * 删除
     * @param id
     * @return
     * @throws Exception
     */
    void delete(KeyType id) throws SkException;




    void batchDelete(List<KeyType> ids) throws SkException;





}
